package net.oschina.git.fsppp.common.base;

import net.oschina.git.fsppp.common.baserx.RxManager;

/**
 * Created by QiHuang on 2016/10/7.
 */
public abstract class BasePresenter<T extends BaseView, E extends BaseModel> {
    public BaseFrame mFrame;
    public T mView;
    public E mModel;
    public RxManager mManager;

    public BasePresenter(T view,  E model) {
        mView = view;
        mModel = model;
        onStart();
    }

    public void onStart(){
        mManager = new RxManager();
    }

    public void onDestroy() {
        mManager.clear();
    }
}
